package com.bltec.emergency.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseJson {
    private int code;
    private Object msg;

    public static final ResponseJson LOGIN_SUCCESS = new ResponseJson(Constant.OK, Constant.login_success);//登录成功

    public static final ResponseJson LOGIN_FAIL_PWD = new ResponseJson(Constant.FAIL_PWD, Constant.login_fail_pwd);//登录失败
    public static final ResponseJson LOGIN_FAIL_USER_NO_FOUND = new ResponseJson(Constant.FAIL_USER_NO_FOUND, Constant.login_fail_user_no_found);//登录失败，用户未找到
    public static final ResponseJson LOGIN_FAIL_LOCK = new ResponseJson(Constant.FAIL_USER_LOCK, Constant.login_fail_lock);//登录失败，用户锁定

    public static final ResponseJson NO_AUTHORIZE = new ResponseJson(Constant.NO_AUTHORIZE, Constant.no_Authorize);//无权限

    public static final ResponseJson UPDATE_ERROR = new ResponseJson(Constant.UPDATE_ERROR, Constant.update_error);//更新失败
}
